package com.ruoyi.project.reportSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.reportSystem.mapper.AttendanceRecordMapper;
import com.ruoyi.project.reportSystem.domain.AttendanceRecord;
import com.ruoyi.project.reportSystem.service.IAttendanceRecordService;

/**
 * 考勤报表Service业务层处理
 * 
 * @author wangshuo
 * @date 2020-05-17
 */
@Service
public class AttendanceRecordServiceImpl implements IAttendanceRecordService 
{
    @Autowired
    private AttendanceRecordMapper attendanceRecordMapper;

    /**
     * 查询考勤报表
     * 
     * @param id 考勤报表ID
     * @return 考勤报表
     */
    @Override
    public AttendanceRecord selectAttendanceRecordById(Long id)
    {
        return attendanceRecordMapper.selectAttendanceRecordById(id);
    }

    /**
     * 查询考勤报表列表
     * 
     * @param attendanceRecord 考勤报表
     * @return 考勤报表
     */
    @Override
    public List<AttendanceRecord> selectAttendanceRecordList(AttendanceRecord attendanceRecord)
    {
        return attendanceRecordMapper.selectAttendanceRecordList(attendanceRecord);
    }

    /**
     * 新增考勤报表
     * 
     * @param attendanceRecord 考勤报表
     * @return 结果
     */
    @Override
    public int insertAttendanceRecord(AttendanceRecord attendanceRecord)
    {
        return attendanceRecordMapper.insertAttendanceRecord(attendanceRecord);
    }

    /**
     * 修改考勤报表
     * 
     * @param attendanceRecord 考勤报表
     * @return 结果
     */
    @Override
    public int updateAttendanceRecord(AttendanceRecord attendanceRecord)
    {
        return attendanceRecordMapper.updateAttendanceRecord(attendanceRecord);
    }

    /**
     * 批量删除考勤报表
     * 
     * @param ids 需要删除的考勤报表ID
     * @return 结果
     */
    @Override
    public int deleteAttendanceRecordByIds(Long[] ids)
    {
        return attendanceRecordMapper.deleteAttendanceRecordByIds(ids);
    }

    /**
     * 删除考勤报表信息
     * 
     * @param id 考勤报表ID
     * @return 结果
     */
    @Override
    public int deleteAttendanceRecordById(Long id)
    {
        return attendanceRecordMapper.deleteAttendanceRecordById(id);
    }

    @Override
    public AttendanceRecord selecAttendanceRecordByusername(AttendanceRecord attendanceRecord) {
        return attendanceRecordMapper.selecAttendanceRecordByusername(attendanceRecord);
    }

    @Override
    public int addqiandaoRecord(AttendanceRecord attendanceRecord) {
        return attendanceRecordMapper.addqiandaoRecord(attendanceRecord);
    }

    @Override
    public AttendanceRecord selectTodayRecord(AttendanceRecord attendanceRecord) {
        return attendanceRecordMapper.selectTodayRecord(attendanceRecord);
    }

    @Override
    public List<AttendanceRecord> selectTodayRecordList(AttendanceRecord attendanceRecord) {
        return attendanceRecordMapper.selectTodayRecordList(attendanceRecord);
    }

    @Override
    public List<AttendanceRecord> selecAttendanceRecordByStationCode(AttendanceRecord attendanceRecord) {
        return attendanceRecordMapper.selecAttendanceRecordByStationCode(attendanceRecord);
    }

    @Override
    public List<AttendanceRecord> selectUserstationListRecord(AttendanceRecord attendanceRecord) {
        return attendanceRecordMapper.selectUserstationListRecord(attendanceRecord);
    }
}
